package com.usian.mapper;

//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.pojo.CL;
import com.usian.pojo.User;
import com.usian.pojo.Zhuce;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ClMapper extends Mapper<CL> {

    public List<CL> findAll(CL cl);

    public List<CL> findGL(CL cl);


    public void addCL(CL cl);

    @Delete("delete from cl where id=#{id}")
    void del(Integer id);
    @Select("select * from cl where id=#{id}")
    CL editId(Integer id);
    @Update("update cl set cph=#{cph},etckh=#{etckh},money=#{money},time=#{time},name=#{name} where id=#{id}")
    void editCL(CL cl);
}
